#pragma once

#include "irc_line.h"

class irc_base_filter
{
	public:
		irc_base_filter(void);
		virtual ~irc_base_filter(void);
		virtual void process( irc_line * ) = 0;
		irc_base_filter *chain( irc_base_filter *_next ) { next = _next; return next; }
	protected:
		irc_base_filter( const char *name );
		irc_base_filter *next;
		void forward( irc_line *line ) { next->process( line ); }
		char name[64];
};

